<include file="public:header" />
<include file="public:left" />
<div class="flexigrid">
    <div class="mDiv">
        <div class="ftitle">
            <h3>活动编辑</h3>
            <h5><a class="fr" href="javascript:void(0)" onclick="history.go(-1)">返回上一页</a></h5>
        </div>
    </div>
</div>
	<form  method="post" enctype="multipart/form-data" id="brandForm">
		<input type="hidden" name="id" value="{$banner.id}" />
     <section>
      <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">主图：</span>
                <input type="file" name="bnimage" class="textbox textbox_295"/>
                <input type="hidden" name="bne" class="textbox textbox_295" value="{$banner.pic}"/>
            </li>
          <if condition="$banner.pic">
              <li>
                  <span class="item_name" style="width:120px;">主图：</span>
                  <img height="100" src="__STATIC__/uploads/{$banner.pic}" alt="">
              </li>
          </if>
          <li>
              <span class="item_name" style="width:120px;">跳转店铺：</span>
              <select name="shop_id" id="" class="textbox textbox_295" style="height: 35px">
                  <volist name="shop" id="vo">
                      <option value="{$vo['id']}" <if condition="$vo['id'] eq $banner.shop_id">selected="selected"</if> >{$vo['shopname']}</option>
                  </volist>
              </select>
          </li>
          <li>
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="button" class="link_btn" value="提交"/>
       </li>
      </ul>
     </section>
	 </form>
     <!--tabStyle-->
     <script type="text/javascript">
     $(document).ready(function(){
		 //tab
		 $(".admin_tab li a").click(function(){
		  var liindex = $(".admin_tab li a").index(this);
		  $(this).addClass("active").parent().siblings().find("a").removeClass("active");
		  $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
		 });
		 
		 $(".link_btn").click(function(){
			
			
			$("#brandForm").submit();

		 });

		 });
     </script>
	 

	 


 </div>
</section>
</body>
</html>
